package itsm.isperp.module.entity.app;

import itsm.isperp.framework.message.domain.IMessagePacket;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 描述:app_message_success 创建者:zhouhg 创建时间:2013/7/31
 **/
@Entity
@Table(name = "app_message_success")
public class AppMessageSuccess extends AppMessage {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public AppMessageSuccess() {
	}

	public AppMessageSuccess(AppMessage message) {
		super(message);
	}

	public AppMessageSuccess(IMessagePacket message) {
		super(message);
	}

	@Column
	protected boolean readed;

	@Column
	protected Timestamp readTime;

	@Column
	protected boolean areLeave;

	@Column
	protected boolean areFromCustomer;

	public boolean isAreLeave() {
		return areLeave;
	}

	public void setAreLeave(boolean areLeave) {
		this.areLeave = areLeave;
	}

	public Timestamp getReadTime() {
		return readTime;
	}

	public void setReadTime(Timestamp readTime) {
		this.readTime = readTime;
	}

	public boolean isReaded() {
		return readed;
	}

	public void setReaded(boolean readed) {
		this.readed = readed;
	}

	public boolean isAreFromCustomer() {
		return areFromCustomer;
	}

	public void setAreFromCustomer(boolean areFromCustomer) {
		this.areFromCustomer = areFromCustomer;
	}

}
